package cn.edu.scau.cmi.liweihang.hibernate.domain;

import java.util.HashSet;
import java.util.Set;

import cn.edu.scau.cmi.liweihang.spring.hibernate.domain.Teacher;

/**
 * Student entity. @author MyEclipse Persistence Tools
 */
public class Student implements java.io.Serializable {


	// Fields

	private Long id;
	private Teacher tutor;
	private String name;


	// Constructors

	/** default constructor */
	public Student() {
	}

	/** minimal constructor */
	public Student(Long id) {
		this.id = id;
	}

	/** full constructor */
	public Student(Long id, String name) {
		this.id = id;
		this.name = name;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Teacher getTeacher() {
		return this.tutor;
	}

	public void setTeacher(Teacher tutor) {
		this.tutor = tutor;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "Student [id=" + id + ", teacher=" + tutor + ", name=" + name + "]";
	}

	
}
